package com.roncoo.pay.permission.entity;

import java.util.List;

import org.springframework.data.mongodb.core.mapping.DBRef;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 权限管理-角色..
 */
@Document(collection="role")
public class PmsRole extends BaseEntity {

	private String roleCode; // 角色编码：例如：admin
	private String roleName; // 角色名称
	
	@DBRef
	private List<PmsUser> users;

	public List<PmsUser> getUsers() {
		return users;
	}

	public void setUsers(List<PmsUser> users) {
		this.users = users;
	}

	public String getRoleCode() {
		return roleCode;
	}

	public void setRoleCode(String roleCode) {
		this.roleCode = roleCode;
	}

	/**
	 * 角色名称
	 * @return
	 */
	public String getRoleName() {
		return roleName;
	}

	/**
	 * 角色名称
	 * @return
	 */
	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public PmsRole() {

	}
}
